package retina;

public class Photoreceptor 
{
	private final boolean inhibitor;
	
	//By default excitatory
	public Photoreceptor()
	{
		inhibitor = false;
	}
	
	public Photoreceptor(boolean isInhibitory)
	{
		inhibitor = isInhibitory;
	}
	
	public double fire(double input)
	{
		return (inhibitor)? -input:input;
	}
	
	public boolean isInhibitor()
	{
		return this.inhibitor;
	}
}
